package com.fbs.chicken.shirodemo.security.web;

import org.apache.shiro.authz.AuthorizationException;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/error")
@RestController
public class ErrorController {
    @RequestMapping("/")
    public void error() {
        throw new AuthorizationException("未登录");
    }
}
